<!DOCTYPE html>
<html>
<head>
    <title>设备管理信息</title>
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






</head>
<body class="ren-body">
<div id="rrapp" v-cloak>
    <!-- 新增表单 -->
    <form class="layui-form ren-form" style="margin-bottom: 60px;">
        <div class="form-content-box">
            <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                设备管理信息
            </div>
            <div class="form-content-session-box">
                <div class="card">
                    <div class="layui-row form-group">
                        <div class="column layui-col-xs4">
                            <label class="layui-form-label"><span style="color:red">*</span>设备生产商</label>
                            <div class="layui-input-block">
                                <select lay-filter="manufacturerNumber" v-model="deviceManagement.manufacturerNumber"
                                        lay-verify="validate_manufacturerNumber" id="manu">
                                    <option value="">请选择设备生产商</option>
                                    <option v-for="itm in gpsEquipmentSupplier" :value="itm.code">{{itm.value}}</option>
                                </select>
                            </div>
                        </div>

                    </div>
                </div>
                <br/><br/>
                <div id="dyForm" v-if="addArr.length>0">
                    <!-- -->
                    <div v-for="(item,index) in addArr" :key="index">
                        <div class="card">
                            <div class="layui-row form-group">
                                <div class="column layui-col-xs4 ">
                                    <label class="layui-form-label"><span style="color:red">*</span>设备型号</label>
                                    <div class="layui-input-block">
                                        <input type="text" v-model="item.deviceTypeNo"
                                               lay-verify="validate_deviceTypeNo"
                                               autocomplete="off" placeholder="请输入设备型号" class="layui-input searchVal">
                                    </div>
                                </div>
                                <a class="layui-btn search-btn" id="addButton" @click="add" v-if="index==0">添加</a>
                                <a class="layui-btn search-btn" id="addButton2" @click="del(index)"
                                   v-if="index!=0">删除</a>
                            </div>
                            <div class="layui-row form-group">
                                <div class="column layui-col-xs4">
                                    <label class="layui-form-label"><span style="color:red">*</span>数量</label>
                                    <div class="layui-input-block">
                                        <input type="number" lay-verify="validate_num" v-model="item.num"
                                               autocomplete="off"
                                               placeholder="请输入数量" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-row form-group">
                                <div class="column layui-col-xs4">
                                    <label class="layui-form-label"><span style="color:red">*</span>设备类型</label>
                                    <div class="layui-input-block">
                                        <select :name="index" lay-filter="deviceKind" v-model="item.deviceKind"
                                                lay-verify="validate_deviceKind" :id="dom(index)">
                                            <option value="">请选择设备设备类型</option>
                                            <option v-for="itm in gpsEquipmentType" :value="itm.code">{{itm.value}}
                                            </option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-row form-group" :id="step(index)">
                                    <div class="column layui-col-xs4">
                                        <label class="layui-form-label"><span style="color:red">*</span>选择指令</label>
                                        <div class="layui-input-block">
                                            <input @click="chooseCommands(index)" type="text"
                                                   v-model="item.deviceCommands"
                                                   autocomplete="off" placeholder="请选择设备指令" class="layui-input"
                                                   :id="dot(index)"
                                                   readonly>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="float-btn-group bottom-bar">
                <a class="layui-btn reset-btn" id="closePage">取消</a>
                <a class="layui-btn search-btn" lay-submit lay-filter="save" id="save">保存</a>
            </div>
        </div>
    </form>
    <form class="layui-form" v-show="commandsShow" id="commands">
        <div  class="layui-form-item">
            <label class="layui-form-label">指令集</label>
            <div class="layui-input-block">
                <div v-for="(de,i) in deviceCommands" :key="i">
                    <input type="checkbox" :id="i" name="comList" :value="de.name"
                           :title="de.name" lay-filter="comList">
                </div>
            </div>
        </div>
    </form>

</div>


<script src="../../statics/js/modules/devicemanagement/devicemanagementedit.js?_${.now?long}"></script>
</body>
</html>
